package com.example.demo.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 权限
 * </p>
 *
 * @author Mr.Abel
 * @since 2024-04-09
 */
@Getter
@Setter
@ApiModel(value = "Permission对象", description = "权限")
public class PermissionVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "权限名不能为空")
    @ApiModelProperty("权限名")
    private String perName;

    @NotNull(message = "权限字符串不能为空")
    @ApiModelProperty("权限字符串")
    private String perKey;
}
